package com.example.supplychainbackend.dao.production;

import com.example.supplychainbackend.entity.production.ProductionCertEntity;
import com.example.supplychainbackend.entity.production.ProductionWorkorderEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductionWorkorderDao extends JpaRepository<ProductionWorkorderEntity,Long> {
    ProductionWorkorderEntity findByPlanOrderNo(String planOrderNo);
    ProductionWorkorderEntity findByWorkOrderNo(String workOrderNo);
    //String findPlanOrderNoByWorkOrderNo(String workOrderNo);
    Long deleteByWorkOrderNo(String workOrderNo);
    List<ProductionWorkorderEntity> findAllByEnterpriseId(String enterpriseId);
}
